package com.dingding.study.exception;


public class BaseException extends RuntimeException{

	private static final long serialVersionUID = 1L;
	// 错误信息
	private String errorMsg;
	// 服务器状态码
	private Integer code;


	public BaseException(String errorMsg) {
		super(errorMsg);
		this.errorMsg = errorMsg;
	}

	public BaseException(Integer code, String errorMsg) {
		super(errorMsg);
		this.errorMsg = errorMsg;
		this.code = code;
	}

	public String getErrorMsg() {
		return errorMsg;
	}

	public Integer getCode() {
		return code;
	}


}
